
<?php
 	@session_start();
 	 
    if (!isset($_SESSION["user"])) {
		echo "<script>alert('使用者帳號不存在,請重新登入!!');window.location='/ad/html/publish/publishLogin.php'</script>";
    } 
 	
 	//$_SESSION["user"] = '{"account":"koko0809@msn.com","name":"admin"}';	
?>

<script type="text/javascript">
	 function getUser(){
	 	return '<?php echo $_SESSION["user"]?>'.toJSON();
	 }
	
</script>